package com.sora.msmservice.controller;

import com.sora.commonutils.R;
import com.sora.msmservice.serivce.MsmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Classname: MsmController
 * @Description:
 * @Author: Stonffe
 * @Date: 2023/1/11 21:35
 */
@RestController
@RequestMapping("/msmservice/msm")
@CrossOrigin
public class MsmController {
    @Autowired
    private MsmService msmService;
    @GetMapping("/send/{mail}")
    public R sendMsm(@PathVariable String mail){
        msmService.sendVerifyCode(mail);
        return R.ok();
    }
}
